﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Asset/EassetMaster.master" AutoEventWireup="true"
    CodeBehind="AssetsRevaluationForm.aspx.cs" Inherits="Eassets.UI.Asset.AssetsRevaluationForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Asset Revaluation"></asp:Label>
    </div>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelOrganizationLevelList" runat="server" Text="Organization Level List "
                                    CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListOrganizationLevelList" runat="server" CssClass="select"
                                    AutoPostBack="true" OnSelectedIndexChanged="dropDownListOrganizationLevelList_OnSelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td align="right" width="">
                                <asp:Label ID="labelTransactionNo" runat="server" Text="Transaction No" CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListTransactionNo" runat="server" CssClass="select"
                                    AutoPostBack="true" AppendDataBoundItems="true">
                                    <asp:ListItem Value="" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelMainCategory" runat="server" Text="Main Category" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListMainCategory" runat="server" CssClass="select"
                        AutoPostBack="true" OnSelectedIndexChanged="dropDownListMainCategory_SelectedIndexChanged"
                        AppendDataBoundItems="True">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelSubCategory" runat="server" Text="Sub Category" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListSubCategory" runat="server" CssClass="select" AutoPostBack="true"
                        AppendDataBoundItems="true" OnSelectedIndexChanged="dropDownListSubCategory_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelAsset" runat="server" Text="Asset" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListAsset" runat="server" CssClass="select" AutoPostBack="true"
                        AppendDataBoundItems="true" OnSelectedIndexChanged="dropDownListAsset_SelectedIndexChanged">
                        <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <asp:GridView ID="gridViewAssetDetails" runat="server" Caption="Asset Details" CssClass="ColStyle"
                        EmptyDataText="No data to display" AllowPaging="True" PageSize="10" AutoGenerateColumns="false"
                        Width="100%" OnSelectedIndexChanged="gridViewAssetDetails_SelectedIndexChange">
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <Columns>
                            <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:BoundField HeaderText="" DataField="ItemDetailsId" ItemStyle-Width="40" />
                            <asp:TemplateField HeaderText="Asset Code">
                                <ItemTemplate>
                                    <%# DataBinder.Eval(Container.DataItem, "Assets.Code")%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Serial Code" DataField="AssetSerialCode" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="Purchased Date" DataField="PurchasedDate" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" DataFormatString="{0:d}" />
                            <asp:BoundField HeaderText="Current Book Value" DataField="CurrentBookValue" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="Remaining Life Time" DataField="RemainingLifeTime" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" />
                        </Columns>
                    </asp:GridView>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelChangedValue" runat="server" Text="Changed Value" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxChangedValue" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="10" OnTextChanged="textBoxChangedValue_OnTextChanged"
                        AutoPostBack="true"></asp:TextBox>
                    <asp:Label ID="label2" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelRevalueDate" runat="server" Text="Revalue Date" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxRevalueDate" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="8"></asp:TextBox>
                    <asp:Label ID="labelRevalueDateStar" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="textBoxRevalueDate">
                    </asp:CalendarExtender>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelNewLifeTime" runat="server" Text="New Life Time" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxNewLifeTime" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="8"></asp:TextBox>
                    <asp:Label ID="label1" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelRevalueReason" runat="server" Text="Revalue Reason" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxRevalueReason" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="200"></asp:TextBox>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td style="width: 90%">
                            </td>
                            <td>
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="button_normal" OnClick="buttonSave_OnClick" />
                            </td>
                            <td>
                                <asp:Button ID="buttonConfirm" runat="server" Text="Confirm" CssClass="button_normal" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
</asp:Content>
